package com.web3.management.repository;

import com.web3.management.entity.TmClient;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.List;
import java.util.Optional;

@Repository
public interface TmClientRepository extends JpaRepository<TmClient, Integer> {

    Optional<TmClient> findByClientId(String clientId);

    Optional<TmClient> findByAccountId(Integer accountId);

    List<TmClient> findByAccountIdIn(Collection<Integer> accountIds);
}
